import request from '@/router/axios';

export const getAqlConfigList = (current, size, params) => {
  return request({
    url: '/api/mes-qms/qms-aql-scheme/page',
    method: 'get',
    params: {
      current,
      size,
      ...params
    }
  });
};

export const saveOrUpdateConfig = (data) => {
  return request({
    url: '/api/mes-qms/qms-aql-scheme/submit',
    method: 'post',
    data
  });
};

export const removeConfig = (params) => {
  return request({
    url: '/api/mes-qms/qms-aql-scheme/remove',
    method: 'get',
    params
  });
};